package com.cskaoyan.controller;

import com.cskaoyan.bean.MarketFeedback;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.AdminFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yi
 * @date 2022/10/13 19:49
 */
@RestController
@RequestMapping("admin/feedback")
public class AdminFeedbackController {
    @Autowired
    AdminFeedbackService adminFeedbackService;

    @RequestMapping("list")
    public BaseRespVo list(String username, Integer id, BasePageInfo basePageInfo) {
        CommonData<MarketFeedback> data = adminFeedbackService.queryFeedback(username, id, basePageInfo);
        return BaseRespVo.ok(data, "成功");

    }
}
